﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ImPM.Application
{
    public class PerformanceCounterInfo
    {
        // Fields
        private string _component;
        private string _info;
        private string[] _instanceNames;
        private string _instType;
        private string _name;
        private string _type;

        // Properties
        [XmlElement("Component")]
        public string Component
        {
            get
            {
                return this._component;
            }
            set
            {
                this._component = value;
            }
        }

        [XmlElement("CounterInfo")]
        public string CounterInfo
        {
            get
            {
                return this._info;
            }
            set
            {
                this._info = value;
            }
        }

        [XmlElement("CounterType")]
        public string CounterType
        {
            get
            {
                return this._type;
            }
            set
            {
                this._type = value;
            }
        }

        [XmlElement("InstanceName", typeof(string))]
        public string[] InstanceName
        {
            get
            {
                return this._instanceNames;
            }
            set
            {
                this._instanceNames = value;
            }
        }

        [XmlElement("InstanceType")]
        public string InstanceType
        {
            get
            {
                return this._instType;
            }
            set
            {
                this._instType = value;
            }
        }

        [XmlElement("Name")]
        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }
    }


}
